# $NetBSD: Makefile,v 1.4 2013/09/09 14:05:30 thomasklausner Exp $

DISTNAME=	darcs-to-git-0.1
CATEGORIES=	devel
GIT_REPO=	https://github.com/purcell/${PKGBASE}.git

MAINTAINER=	pho@cielonegro.org
HOMEPAGE=	https://github.com/purcell/${PKGBASE}
COMMENT=	Convert a Darcs repository into a Git repository
LICENSE=	mit

NO_BUILD=	yes
USE_LANGUAGES=	# none

INSTALLATION_DIRS=	bin share/doc/${DISTNAME}

REPLACE_RUBY_DIRS=	.
REPLACE_RUBY_PAT=	darcs-to-git

DEPENDS+=	git-base-[0-9]*:../../devel/git-base
DEPENDS+=	darcs>1.0.7:../../devel/darcs

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/darcs-to-git    ${DESTDIR}${PREFIX}/bin/
	${INSTALL_DATA}   ${WRKSRC}/LICENSE         ${DESTDIR}${PREFIX}/share/doc/${DISTNAME}/
	${INSTALL_DATA}   ${WRKSRC}/README.markdown ${DESTDIR}${PREFIX}/share/doc/${DISTNAME}/

.include "../../wip/mk/git-package.mk"
.include "../../lang/ruby/buildlink3.mk"
.include "../../lang/ruby/replace.mk"
.include "../../mk/bsd.pkg.mk"
